#!/user/bin/env python
# -*- coding:utf-8 -*-
import urllib2
import urllib
if __name__ == '__main__':
    req_url = "https://www.oschina.net/action/user/hash_login"
    #头部
    headers = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"}
    values = {"email":"","pwd":""}
    data = urllib.urlencode(values)
    request = urllib2.Request(url=req_url,data=data,headers=headers)
    # 响应和响应
    response = urllib2.urlopen(request)
    print response.read()


